{{ define "captcha" }}
<img src="/generate-captcha" alt="captcha image" />
<input type="text" name="captchaTest" id="captcha-test" required />
{{ if .postFailed }} <p style="color: red">Captcha failed, try again</p> {{ end }}
{{ if .postSuccess }} <p style="color: green">Post successful!</p> {{ end }} 
{{ end }}
